package com.kedacom.freedomLabel.model.excel;

import android.support.annotation.NonNull;

import com.kedacom.freedomLabel.excel.AdditionalColumn;
import com.kedacom.freedomLabel.excel.IRowRecord;
import com.kedacom.freedomLabel.excel.ISheetRecord;
import com.kedacom.freedomLabel.model.bean.Operator;

import java.util.List;

public class OperatorSheet implements ISheetRecord {
    private List<Operator> rowRecords;

    public OperatorSheet(List<Operator> rowRecords){
        this.rowRecords = rowRecords;
    }
    
    @Override
    public String sheetName() {
        return "用户";
    }

    @NonNull
    @Override
    public String[] columnNames() {
        return new String[]{"卡号","用户姓名","附加数据1","附加数据2","附加数据3","备注"};
    }

    @NonNull
    @Override
    public AdditionalColumn[] additionalColumnNames() {
        return new AdditionalColumn[0];
    }

    @NonNull
    @Override
    public List<? extends IRowRecord> getRowRecords() {
        return this.rowRecords;
    }
}
